<?php 
	$form = $this->registerForm;
	
	$form->setAttribute('action', $this->url("user/process", array('controller'=>'index', 'action'=>'add')));
	
	$form->prepare();
	
	echo $this->form()->openTag($form);
	echo $this->formCollection($form);
	echo $this->form()->closeTag($form);
	
	if ($this->messages){
		echo '<ul>';
		foreach($this->messages as $message)
		{
			echo '<li>'.$message.'</li>';
		}
		echo '</ul>';
	}

?>